/**
 * TODO JAVADOC
 */
package com.encon.projecttracker.client;

import java.util.List;

import com.encon.projecttracker.client.util.factory.ServiceFactory;
import com.encon.projecttracker.rpc.beans.CompaniesDTO;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.ScrollPanel;

/**
 *TODO JAVADOC
 *
 * @author bugg
 *
 */
public class CompaniesMenu extends ScrollPanel{

	//combo box
	
	//table, companyname, activeprojects, archivedprojects, type
	public CompaniesMenu(){
	ServiceFactory.getQueryInstance().getCompanies(Projecttracker.getSessionID(), new AsyncCallback<List<CompaniesDTO>>(){

		public void onFailure(Throwable arg0) {
			// TODO Auto-generated method stub
			System.out.println(arg0.getStackTrace());
		}

		public void onSuccess(List<CompaniesDTO> arg0) {
			// TODO Auto-generated method stub
			List me = arg0;
		}
		
	});
	
	}
}
